package com.credithc.customers.base.ro;

import com.credithc.customers.base.utils.CustomerUtils;
import lombok.Data;

@Data
public class UnifyModifyBusinessRo extends CustomerBaseRo {
    private String customerNo;

    private String preCustomerNo;

    private String idCardType;

    private String idCardNo;

    private String legalName;

    private String customerType;

    private String customerPhoneNo;

    private String customerCertNo;

    private String corprateCertExpiry;

    private String corprateCertExpiryend;

    private String corprateMobile;

    private String operatorName;

    private String operatorCertType;

    private String operatorCertNo;

    private String operatorCertExpiry;

    private String operatorCertExpiryend;

    private String operatorMobile;

    private String customerCertPid;

    private String corpratePic1;

    private String corpratePic2;

    public static void checkBaseParam(UnifyModifyBusinessRo ro) {
        CustomerUtils.checkCustomerNo(ro.getCustomerNo());
        CustomerUtils.checkPreCustomerNo(ro.getPreCustomerNo());
        CustomerUtils.checkRequestNo(ro.getRequestNo());
    }
}
